#define _CRT_SECURE_NO_WARNINGS
#include <string.h>
#include <stdio.h>

int main() {
    int a, b, c = 0, cha, sum = 0;
    scanf("%d %d", &a, &b);
    cha = b - a;
    for (; a <= b; a++) {
        for (int i = 1; i <= 5 && a <= b; i++) {
            sum += a;
            printf("%5d", a++);
            
        }
        putchar('\n');
        a -= 1;
        
    }
        printf("Sum = %d", sum);
    char str[128];
    int num = 0, blank = 0, alpha = 0, len = 0;
    gets(str);     
    len = strlen(str);
    for (int i = 0; i < len; i++) {
        if (str[i] == ' ')
            blank += 1;
        else if (str[i] >= '0' && str[i] <= '9')
            num += 1;
        else alpha += 1;

    }
    
    printf("blank = %d, digit = %d, other = %d", blank, num, alpha);
   
  
    int num,i,j;
    long long int cai[99], a, b;
    scanf("%d", &num);
    for (i = 0; i < num; i++) {
        scanf("%lld", cai[i]);
    }

    for (i = 0; i < num; i++) {
        a = cai[i] / 1000;
        b = cai[i] % 1000;
        if (a / 100 + a / 10 % 10 + a % 10 == b / 100 + b / 10 % 10 + b % 10) {
            printf("You are lucky!\n");
        }
        else printf("Wish you good luck.\n");

    }



    return 0;
}